-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding metadata to material page details and editions/details [DDFLSBP-543] #1146
Conversation
.map((contributor) => contributor.display) | ||
.map((contributor) => { | ||
if (contributor.roles.length > 0) { | ||
const roleNames = contributor.roles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These TS errors are a bit alarming.
It seems like you did not run the FBI codegen cmd after updating the fragment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @spaceo
The schema was updated in this commit: 0b2405e#diff-d7e14ab57cd19ae792d595c71bf36d4157c7fea99e0a7ea96e1003494b0baf6e 🙂
.map((contributor) => { | ||
if (contributor.roles.length > 0) { | ||
const roleNames = contributor.roles | ||
.map((role) => role.function.singular) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
if (contributor.roles.length > 0) { | ||
const roleNames = contributor.roles | ||
.map((role) => role.function.singular) | ||
.join(", "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to run codegen? The types are not matching...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Link to issue
https://reload.atlassian.net/browse/DDFLSBP-543
Description
Adding metadata to material page details and editions/details:
Screenshot of the result
Additional info
The corresponding PR adding translation strings in
dpl-cms
is danskernesdigitalebibliotek/dpl-cms#1050